#pragma once

#include <QUrl>
#include <QObject>

class VideoPlayList : public QObject
{
	Q_OBJECT

public:
	VideoPlayList(QObject *parent = nullptr);

	void addToPlayList(QList<QUrl> urls);
	void removeFromPlayList(int from, int to);
	QUrl getCurrentUrl();
	void setCurrentUrl(int indx);
	int getCurrentIndex();
	QUrl playNext();
	QUrl playPrevious();
	int getSize();
	QList<QUrl> getList();

Q_SIGNALS:
	void playListChanged();
	void currentIndexChanged(int index);

private:
	QList<QUrl> playList;
	int currentIndex = 0;
};

